package com.li.core.service.system.impl;

import com.li.configserve.domain.gloabreturn.ResponseInfo;
import com.li.configserve.domain.gloabreturn.ResultEnum;
import com.li.core.domain.system.LoginLogDO;
import com.li.core.mapper.system.LoginLogMapper;
import com.li.core.service.system.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2021年11月15日 21:25:00
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Autowired
    private LoginLogMapper loginLogMapper;

    /**
     * 获取登录日志信息
     *
     * @return
     * @param id
     */
    @Override
    public ResponseInfo<LoginLogDO> getLoginLogById(String id) {
        LoginLogDO loginLogDO = loginLogMapper.getLoginLogById(id);
        return ResponseInfo.success(ResultEnum.SUCCESS.getCode(),ResultEnum.SUCCESS.getMessage(),loginLogDO);
    }
}
